<template>
    <div class="header">
        <div class="header_in">
            <h2>叩丁狼电商运营平台</h2> 
            <el-radio-group>
                <el-icon :size="22" ><Menu /></el-icon>
            </el-radio-group>
        </div>
        <div class="admin">
            <el-dropdown @command="handleCommand">
                <span class="el-dropdown-link">
                    admin<el-icon class="el-icon--right"><arrow-down /></el-icon>
                </span>
                <template #dropdown>
                <el-dropdown-menu>
                    <el-dropdown-item command="a">首页</el-dropdown-item>
                    <el-dropdown-item command="b">退出</el-dropdown-item>
                </el-dropdown-menu>
                </template>
            </el-dropdown>
        </div>
    </div>
</template>

<script setup lang="ts">
    import { ElMessage } from 'element-plus'
    import { ArrowDown } from '@element-plus/icons-vue'
    import {useStore}from "../../../store/user"

    const store = useStore()
    // console.log(store.isclose);
  
    const handleCommand = (command: string | number | object) => {
    ElMessage(`click on item ${command}`)
    }
</script>

<style scoped lang="less">
.header{
    display: flex;
    justify-content: space-between;
    color: white;
    height: 70px;
    // line-height: 70px;
    .header_in{
        line-height: 70px;
        display: flex;
        justify-content: start;
        :deep(.el-icon){
            // line-height: 70px;
            margin-top: 6px;
            margin-left: 20px;
        }
    }
    .admin{
        padding-right: 100px;
        line-height: 70px;
    }
}
    .example-showcase .el-dropdown-link {
    cursor: pointer;
    color: var(--el-color-primary);
    display: flex;
    align-items: center;
    }

    :deep(.el-dropdown-link){
        color: white;
        margin-top: 25px;
    }
</style>